package org.liuyunfeng.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

/**
 * @author: TanJingyu
 * @create: 2022-03-15 11:14
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping
    public String all() throws InterruptedException {
        System.out.println("来了啊");
        TimeUnit.SECONDS.sleep(60);
        return "谭先生";
    }
}

    